package net.maku.module.business.service.impl;

import lombok.AllArgsConstructor;
import net.maku.module.business.dao.DictionariesDao;
import net.maku.module.business.dao.jpa.DictionariesRepository;
import net.maku.module.business.entity.DictionariesEntity;
import net.maku.module.business.service.DictionariesService;
import net.maku.newbase.NewBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 业务_字典
 *
 * @author
 */
@Service
@AllArgsConstructor
public class DictionariesServiceImpl extends NewBaseServiceImpl<DictionariesDao, DictionariesEntity> implements DictionariesService {

    @Autowired
    private DictionariesRepository dictionariesRepository;

    @Override
    public DictionariesEntity findByCode(String code) {
        return dictionariesRepository.findByCode(code);
    }
}